package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.AccountBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Set;

/**
 * @author Gnerv LiGen
 */
@Data
public class AccountCreateDTO {

    private String username;
    private String password;
    private String status;
    private Integer sort;

    private String orgUkId;
    private Set<String> roleUkIdList;

    public AccountBO toAccountBO() {
        AccountBO accountBO = new AccountBO();
        BeanUtils.copyProperties(this, accountBO);
        return accountBO;
    }

}